$menuSize:255px;              //左侧列表宽度
$headSize:45px;              //顶部操作栏高度
$operatorSize:275px;          //右侧详情宽度

$ibc: #dcdfe6;              //border color
$ibl: #edeef5;              //border color light
$itc: #312659;              //text color
$icc: rgba(black,0.45);     //icon color

$primary: #409EFF;          //主题颜色


@import '../../assets/iconfont/iconfont.css';

.visual-editor{
  position: fixed;
  top: 20px;
  bottom: 20px;
  left: 20px;
  right: 20px;
  // background-color: #fff;
  &::after{
    position: fixed;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    background-color: rgba(black,0.2);
    content: '';
  }
  .visual-editor-menu{
    position: absolute;
    left: 0;
    top: 0px;
    bottom: 0px;
    width: $menuSize;
    padding-bottom: 300px;
    background-color: #fff;
    z-index: 1;
   
    .visual-editor-menu-item{
      height: 80px;
      border: 3px solid $ibl;
      position: relative;
      margin-top: 10px;
      margin-left: 10px;
      margin-right: 10px;
      padding: 20px 20px;
      box-sizing: border-box;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 12px;
      &::after{
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        content: '';
        // background: chartreuse;
      }
      .visual-editor-menu-item-label{
        position: absolute;
        left: 0;
        top: 0;
        width: 50px;
        height: 20px;
        font-size: 12px;
        color: #fff;
        line-height: 20px;
        text-align: center;
        background-color: #409EFF;
      }
    }
  }
  .visual-editor-operator{
    position: absolute;
    right: 0;
    top: 0px;
    bottom: 0px;
    width: $operatorSize;
    background-color: #fff;
    z-index: 1;
  }
  .visual-editor-head{
    position: absolute;
    left: $menuSize;
    right: $operatorSize;
    height: $headSize;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    .visual-editor-head-item{
      width: 54px;
      height: 45px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      background-color: rgba(black,0.45);
      margin-left: 1px;
      margin-top: 20px;
      color: #fff;
      &:first-child{
        border-radius:4px 0 0 4px;
      }
      &:last-child{
        border-radius: 0 4px 4px 0;;
      }
      &:hover{
        background-color: #fff;
        color: $primary;
        transition: all 300ms linear;
        cursor: pointer;
      }
      &>i{
        font-size: 22px;
      }
      &>.visual-editor-head-item-label{
        font-size: 12px;
      }
    }
  }
  .visual-editor-body{
    position: absolute;
    left: $menuSize;
    right: $operatorSize;
    padding-top: $headSize + 20;
    top: 0px;
    bottom: 0px;
    background-color: #fff;
    z-index: 1;
    &::after{
      position: absolute;
      width: 100%;
      padding-top: $headSize;
      top: 0px;
      bottom: 0px;
      background-color: rgba(rgb(97, 96, 96),0.1);
      content: '';
    }
    .visual-editor-content{
      width: 100%;
      height: 100%;
      overflow: scroll;
      display: flex;
      justify-content: center;
      .visual-editor-container{
        flex-shrink: 0;
        flex-grow: 0;
        width: 100%;
        height: 100%;
        position: relative;
        background-color: #fff;
        z-index: 2;
        .visual-editor-block{
          position: absolute;
          // &::after{
           
          // }
        }
        .visual-editor-block-focus{
          &::after{
            $size:2px;
            position: absolute;
            top: -$size;
            left:-$size;
            right: -$size;
            bottom: -$size;
            content: '';
            border: 1px dashed $primary;
          }
        }
        .visual-editor-container-line-x{
          position: absolute;
          height: 100%;
          top: 0px;
          border: 1px dashed $primary;
        }
        .visual-editor-container-line-y{
          position: absolute;
          width: 100%;
          left: 0px;
          border: 1px dashed $primary;
        }
      }
    }
  }
}